home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / news / nntp / inn / faq-inn-3 < prev    next >
Encoding:
Text File  |  1993-08-23  |  51.6 KB  |  1,365 lines

  1. Last Changed: $Id: FAQ-inn.3,v 1.39 1993/08/19 17:42:42 tal Exp $
  2.  
  3.                       The INN CONFIGURATION FAQ
  4.                       -------------------------
  5.        by Tom Limoncelli, with additions by many, many others.
  6.  
  7. (Copyright 1992,1993 Tom Limoncelli, this may be redistributed in whole
  8. and only on electronic networks.  Otherwise, contact the author.
  9. Publishers and movie agents should contact me directly.  I'd prefer it
  10. if Tom Cruise plays me in the movie, but if he isn't available we can
  11. negotiate.)
  12.  
  13. A special thanks goes to all the people that have helped put this
  14. together.  I've tried to give credit where credit is due.  Additions
  15. and corrections should be sent to tal@Warren.MENTORG.COM.  DO NOT
  16. send requests for help to Tom.  Post them to news.software.nntp.
  17.  
  18.  
  19.                           Table Of Contents:
  20.                           ------------------
  21.  
  22. GENERAL OVERVIEW OF INN
  23.     Should I read the install.ms file in its entirety before
  24.         reading this document?
  25.     How does it all fit together? (LONG)
  26.     Terminology used in the rest of this document.
  27.     What should I monitor as I debug INN problems.
  28. CONFIGURATION DEBUGGING GUIDE
  29.     Connecting to a TCP/IP server.
  30.     My innd won't start!
  31.     Make sure that "feeders" can connect.
  32.     Make sure that "readers" can connect.
  33.     Make sure that clients can post.
  34.     "client" doesn't have the software needed to post.
  35.     Debugging the "newsfeeds" file.
  36.     The ME line in the newsfeeds file.
  37.     Cookbook example of an outgoing NNTP feed:
  38.     Cookbook example of an outgoing UUCP feed:
  39.     Testing an outgoing feed (your "newsfeeds" configuration).
  40.     Cookbook example setting up NOV ("overchan").
  41. STARTUP PROBLEMS AND SYSLOG MESSAGES
  42.     syslog message: ME internal no to group
  43.     syslog message: ME cant sendto CCreader bytes 4 No such file or directory.
  44.     syslog message: ME internal no control and/or junk group
  45.     syslog message: ME bad_newsfeeds no feeding sites
  46.     Why do all these "readclose" messages show up in my syslog?
  47.     "File exists writing symlinking article file -- throttling"
  48.     "cant fopen <newsgroup>/.thread No such file or directory"
  49. MISC QUESTIONS
  50.     Can I edit my configuration files where they are, or do I have
  51.         to edit them in $INN/site ?
  52.     syslog message:  ME cant nonblock 15 Operation not supported.
  53.     Suddenly my active and history files are owned by root!
  54.     What can I do if I can't purchase the O'Reiley And Associates book
  55.         on Managing Usenet?
  56.     Getting an active file.
  57.     How do I use nntplink with INN?
  58.     How do I use newsgate with INN?
  59.     Other cron jobs.
  60.     After a crash.
  61.     Debugging someone that is feeding you.
  62.     Feeds suddenly can't connect anymore!
  63.     How does the "ME" line interact with the other lines?
  64.     Why doesn't nntpget work?
  65.     More about the "to.*" groups.
  66.     I'm getting groups sent to me that I don't want.
  67.     When my feeder connects, I get articles but they don't take
  68.         what's waiting for them.
  69.     Directories are being created with wrong permissions.
  70.     Can I split my news spool across partitions?
  71.     Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  72.  
  73.  
  74. NOTE:  Read this document through from beginning to end after
  75. you first compile INN.  Later, use it for reference if problems
  76. come up.
  77.  
  78. ======================================================================
  79.  
  80.                        GENERAL OVERVIEW OF INN
  81.  
  82. ======================================================================
  83.  
  84.  
  85. ------------------------------
  86.  
  87. Subject: Should I read the install.ms file in its entirety before reading this document?
  88.  
  89. YES!  Install.ms tells you how to compile and install the software.
  90. This document walks you through debugging the *configuration* of the
  91. software once it is installed.
  92.  
  93. This document takes you from where install.ms leaves off, gives you a
  94. quick overview of how all the pieces fit together, and then takes you
  95. through specific debugging tasks.
  96.  
  97. Debugging INN problems is often difficult because one needs to be an
  98. experienced netnews person to do it well.  You can only get experience
  99. by having a properly running system.  This is a catch-22.  This
  100. tutorial attempts to take you through the basics.  The rest you'll
  101. figure out.
  102.  
  103. Newsgroups you should know exist:
  104. news.software.nntp  -- INN questions go here.
  105. news.software.b     -- Discussions about any of the many software
  106.     packages that support the "B news" format (i.e. INN, C news,
  107.     ANU-NEWS, etc.)
  108.  
  109. This document also takes you through the process of verifying that your
  110. system is properly configured.  When you are done, you should:
  111.  
  112. 1.  be sure that when feeders connect they are treated as feeders.
  113.  
  114. 2.  be sure that when clients connect they are treated as clients.
  115.  
  116. 3.  be sure that posting works.
  117.  
  118. 4.  be sure that your out-bound feeds are properly configured.
  119.  
  120.  
  121. ------------------------------
  122.  
  123. Subject: How does it all fit together? (LONG)
  124.  
  125. Here is a fantastic overview of the workings of INN.
  126.  
  127. From: Ken Hornstein <kenh@leps5.phys.psu.edu>
  128.  
  129. I discovered that the biggest problem I had with INN was understanding how
  130. everything fits together (since I had no experience with B or C news).
  131. Here's a (hopefully) simple description of how everything fits
  132. together:
  133.  
  134. After running rc.news (as "root"), you should have the "innd" daemon
  135. running ("ps" will show the process to be owned by "news").  This is
  136. the Master Daemon.  It handles incoming connections, stores the
  137. articles on your disk, but does _not_ send any articles out itself.  It
  138. directs other programs to do that.  Exactly where articles are sent and
  139. how they are sent is determined by the "newsfeeds" file.  Setting up
  140. your newsfeeds file will be the hardest part of configuring INN.  Here
  141. are some example entries from my newsfeeds file:
  142.  
  143. ra/ra.nrl.navy.mil\
  144.         :*,!psu.*/!psu\
  145.         :Tf,Wnm:
  146.  
  147. Looks complicated?  It isn't.  Here's what it means:
  148.  
  149. "ra" is the name of the feed.  "/ra.nrl.navy.mil" is an alias for ra.
  150. This is important because INN uses the "Path" header to insure the
  151. articles are not sent to sites where they have already been.  Thus, any
  152. article that has "ra" or "ra.nrl.navy.mil" in the Path header will NOT
  153. be sent to this site.
  154.  
  155. The second line tells what articles will be sent to this site.
  156. "*,!psu.*" means that all articles that are not in psu.* will be sent
  157. to ra.  The details of the pattern matching is found in the wildmat(3)
  158. man page.  The "/!psu" means that articles with a "Distribution" header
  159. of psu will also not be sent to ra.
  160.  
  161. The last field specifies exactly what _kind_ of feeds.  "Tf" means this
  162. is a file feed.  Unless you have unusual requirements, all of your
  163. feeds will be file feeds.  "Wnm" means that the relative path name and
  164. the Message-ID of the article will be written to this file.  By
  165. default, this file is called the same name as your feed file, and is in
  166. your out.going directory.  So on my system, every article destined to
  167. ra will have its filename and Message-ID written to the file
  168. "/var/spool/news/out.going/ra".
  169.  
  170. So how do the articles actually GET to ra?  You run a program that
  171. reads the feeds file and transmits the article.  Two such programs are
  172. included with INN -- "send-nntp" and "nntpsend".  My personal
  173. preference is for nntpsend.  If you are going to use nntpsend, you will
  174. need to add a similar line to your nntpsend.ctl file:
  175.  
  176. ra:ra.nrl.navy.mil
  177.  
  178. This tells nntpsend that articles in the feed file "ra" should be sent
  179. to the site "ra.nrl.navy.mil".  I run nntpsend out of cron every 10
  180. minutes with this line (in /usr/lib/crontab):
  181.  
  182. 0,10,20,30,40,50 * * * * /bin/su news -c '/usr/local/news/bin/nntpsend'
  183.  
  184. This is under Ultrix.  A sane cron would let you specify the userid to
  185. run programs under.
  186.  
  187. UUCP feeds work similarly and are described in a different section.
  188.  
  189. As each article comes in (note that hosts feeding you _must_ be listed
  190. in the hosts.nntp file), innd will examine it and distribute to your
  191. listed feeds based on the above-described selection criteria.
  192.  
  193. One last important thing to do is to make sure your articles get
  194. expired.  This is done from the "news.daily" script.  The "expire.ctl"
  195. file describes how long you want each article to last.  Here are some
  196. sample lines from my expire.ctl:
  197.  
  198. /remember/:14
  199.  
  200. This line tells expire to keep history entries for articles 14 days
  201. after they have been deleted.
  202.  
  203. *:A:1:7:21
  204.  
  205. This is the default line.  This says that by default, an article is
  206. kept a minimum of one day, the default expiration time is 7 days (this
  207. applies if there is no "Expires" header), and the very maximum that the
  208. article is kept is 21 days.
  209.  
  210. psu.*:A:1:14:28
  211.  
  212. This line applies to groups only in Penn State.  By default, those
  213. articles will last 14 days, 28 days at the most.
  214.  
  215. Note that lines in expire.ctl should have the most general entries
  216. first, with the most specific entries last.
  217.  
  218.  
  219. ------------------------------
  220.  
  221. Subject: Terminology used in the rest of this document.
  222.  
  223. We will pretend that your machine is named "nntphost" or
  224. "nntphost.do.main" and that there is a client named "client" or
  225. "client.do.main".
  226.  
  227. Some machines connect to you to try to feed you new articles.  We'll
  228. call these machines "feeders".  Some machines try to connect to you to
  229. read and/or post articles.  We'll call these machines "readers".
  230.  
  231.  
  232. ------------------------------
  233.  
  234. Subject: What should I monitor as I debug INN problems.
  235.  
  236. 1.  run "tail -f /var/adm/messages" to see if any syslog messages are
  237. being generated.
  238.  
  239. 2.  run "tail -f /var/log/news/news.err" to see if any fatal errors
  240. happen. 
  241.  
  242. 3.  Check for incoming email constantly (especially when trying to post
  243. from "nn").
  244.  
  245. ======================================================================
  246.  
  247.                     CONFIGURATION DEBUGGING GUIDE
  248.  
  249. ======================================================================
  250.  
  251.  
  252. ------------------------------
  253.  
  254. Subject: Connecting to a TCP/IP server.
  255.  
  256. You know that "telnet"'ing to a machine lets you log into it.  Many
  257. TCP/IP services allow you to "telnet" into their port and talk directly
  258. to them.  Try "telnet nntphost 21".  This means log into port #21 (the
  259. "ftp" port) instead of the usual remote login port.
  260.  
  261. Once you are in, you'll get no prompt.  Type "help" and press RETURN.
  262. You should get a list of commands.  If you know what the commands are,
  263. you can talk to this server.  Type "quit" and press RETURN to get out.
  264.  
  265. After every command you should get some kind of status message.  Each
  266. line will begin with a number.  Each message has a unique number.
  267. Errors are defined as anything that starts with a number >= 400.
  268.  
  269. SMTP (mail) and NNTP (netnews) work the same way.  Telnet into their
  270. port and issue commands and data.  "quit" always gets you out.
  271.  
  272. We'll use this to debug INN configurations by "telnet"'ing into the
  273. innd server and seeing the raw error messages it gives us.
  274.  
  275. Try "telnet"'ing into the NNTP port (#119) of a working NNTP server to
  276. see what it's like.
  277.  
  278.  
  279. ------------------------------
  280.  
  281. Subject: My innd won't start!
  282.  
  283. Keep a "tail -f /var/adm/messages" running.  INN reports most errors
  284. via syslog.  The syslog messages usually explain what is wrong.
  285. Elsewhere in this document are details about some of the less obvious
  286. syslog messages.
  287.  
  288. Chances are, INN is starting, finding a misconfigured "ME" line in the
  289. newsfeeds file, and exiting.  You might want to read the section on
  290. configuring your "newsfeeds" file first.
  291.  
  292. Rich Salz says a common reason is that you ran makehistory but didn't
  293. rename the DBZ files.
  294.  
  295. Izar Tarandach <izar@cs.huji.ac.il> suggests that another common
  296. mistake is that innd wasn't being started by the correct uid.  innd
  297. (and therefore rc.news) must be started from "root" (not "news").  It
  298. immediately turns itself in user "news" once certain tasks are
  299. completed.
  300.  
  301.  
  302. ------------------------------
  303.  
  304. Subject: Make sure that "feeders" can connect.
  305.  
  306. "feeders" are listed in hosts.nntp.  "readers" are listed in
  307. nnrp.access.  This section deals with "feeders" and hosts.nntp.
  308.  
  309. When a machine connects to the NNTP port of nntphost, it connects to
  310. the innd process.  innd knows the internet address of the machine that
  311. is making this connection, and sees if it matches the internet
  312. addresses many of the machines listed in the hosts.nntp file.
  313.  
  314. If the machine is not listed in hosts.nntp, it is assumed that this
  315. machine is not a "feeder" and forks off a nnrpd to handle this
  316. connection as a "reader".  If you didn't know that, you didn't read
  317. enough of the INN installation documentation.  Go back and read it
  318. now.
  319.  
  320. Read the man page hosts.nntp to get a complete understanding of what's
  321. going on.  nnrpd uses its own authentication scheme, which is
  322. described in the next section.
  323.  
  324. Since I know you didn't read that man page, I'll give you one more
  325. chance to read them now.
  326.  
  327. Let's configure hosts.nntp.  Just enter the names of all the machines
  328. that feed you:
  329.  
  330. feeder1.do.main:
  331. feeder2.do.main:
  332.  
  333. I don't use passwords yet.  If you do, add them after the ":".
  334.  
  335. Now let's test to see if the feeder can connect properly.
  336.  
  337. Log into to the feeder and "telnet nntphost 119".
  338.  
  339. If you can't log into a feeder, configure your own machine as a feeder
  340. (i.e. feeder to itself) for testing purposes.  Once you can see that
  341. INN is treating that machine as a feeder you can replace the machine's
  342. name with the name of a real feed.
  343.  
  344. If you are given an error message and booted out, check the error
  345. message to see what's wrong.  Maybe the machine is running maintenance
  346. at the time and you have to try again later.  Maybe the machine doesn't
  347. recognize you at all and you have to edit "hosts.nntp" (and don't
  348. forget the "ctlinnd reload" command!).
  349.  
  350. If your "history" file or other files have the wrong ownership or
  351. protections INN will mention the offending file in the error message.
  352. Another common mistake is that people try to use wildcards in
  353. hosts.nntp (which is not supported).  Remember, there are very few
  354. machines that you consider to be "feeders", so you don't want to use a
  355. wildcard.
  356.  
  357. To test a "feeder":  If "feeder1" can send an "ihave" command and get a
  358. "335" as a response, you know that "nntphost" is permitting "feeder1"
  359. to transfer news as a "feeder".  "ihave" requires an operand.  I
  360. usually type "ihave <1@test>" ("<1@test>" is a Message-ID that I know
  361. doesn't exist) and press RETURN.  If I get "500 What?" I know that innd
  362. assumed that I'm a "reader" (so I have to edit my "hosts.nntp" file and
  363. add this client).  If I get "335" and then a blank prompt, then INN is
  364. expecting to be fed an article.  I usually just "^]" (control-]) and
  365. "quit" out; I know that it was willing to accept the article.  If I get
  366. some other error message, it usually gives me enough information to
  367. debug the problem.
  368.  
  369.  
  370. ------------------------------
  371.  
  372. Subject: Make sure that "readers" can connect.
  373.  
  374. As I wrote before, if a connection comes from a machine that isn't
  375. listed in the hosts.nntp file, it is assumed to be a "reader".  A
  376. "feeder" can also issue the "mode reader" command to become a
  377. "reader".  If you have "telnet"'ed in as a "feeder", try issuing this
  378. command.
  379.  
  380. Note: If a site is going to feed *and* read, you'll have to link
  381. readers with innd's client library. The reason for this is that the
  382. clients must tell innd that they want to read using the "mode reader"
  383. command.  The library does that automagically.  It is rare that you
  384. have a machine that is a reader and a feeder (since people will want to
  385. read on their local machine, not yours.)  News readers are now
  386. being packaged as "INN ready" so this will be less and less of a
  387. problem.
  388.  
  389. Once the connection has been handed off to nnrpd, nnrpd checks to make
  390. sure you are authorized.  It does that by reading the nnrp.access
  391. file.
  392.  
  393. There is a problem with what you enter in that file.  Namely, I might
  394. call the client machine "client", but that doesn't matter.  What
  395. matters is what "nntphost" thinks "client" is called.  Maybe "nntphost"
  396. thinks its name is "client.do.main" or even "137.202.177.3".  It
  397. doesn't matter what *you* call "client", permissions in the nnrp.access
  398. file have to be specified based on what "nntphost" calls "client".
  399. Technically, nntpd uses gethostbyaddr() to reverse-lookup the name.
  400. gethostbyaddr() uses DNS or, if you are on a brain-dead Sun running
  401. Sun's NIS/DNS hack, it uses NIS, or DNS, or whatever the hell Sun was
  402. thinking when they created that cruft.
  403.  
  404. To find out what "nntphost" thinks your machine is called, do the
  405. following:  Telnet from "client" to "nntphost" and execute the "finger"
  406. command (just "finger" alone on the command line).  The last column is
  407. what "nntphost" thinks your machine is called.
  408.  
  409. If you don't have an account on both machines things are more
  410. difficult, consult your NIS or DNS expert to tell you what the answer
  411. would be.
  412.  
  413. There is one exception to this technique.  If you are using SunOS and
  414. braindead NIS you get just the machine name (like "milk") instead of
  415. the FQDN (like "milk.warren.mentorg.com") then you must tack on a
  416. period then the domain of the machine.
  417.  
  418. So, with this knowledge (what your nntphost think's client's name is)
  419. and a copy of the man page, edit nnrp.access and add "nntphost"'s name
  420. for "client" to the file.  Only nnrp.access can have wildcards (for
  421. example, "*.sjc.mentorg.com").  You'll want to include wildcards for
  422. all the domains that should be allowed to read/post.
  423.  
  424. Here are some decent examples from my nnrp.access file:
  425.  
  426. -------------------------------------- Tom's nnrp.access file START
  427. ## Default is no access, no way to authentication, and no groups.
  428. *:: -no- : -no- :!*
  429. *.mentorg.com:Read:::*
  430. *.mentor.com:Read:::*
  431. *.warren.mentorg.com:Read Post:::*
  432. -------------------------------------- Tom's nnrp.access file END
  433.  
  434. The second field of "nnrp.access" is case sensitive.  "read post" does
  435. not mean the same as "Read Post".  If you know this already it's
  436. because you read the man page.
  437.  
  438. Note:  nnrpd will append the domain to a name that is not a FQDN.
  439. There is no need to try to find a wildcard that will match non-FQDN
  440. names (i.e. machines in your local NIS cluster).  Previously this FAQ
  441. had reported that "*[^.]*" would match these names but that was wrong
  442. (the wildcard matches everything, oi!).  nnrpd turns non-FQDN's into
  443. FQDNs.
  444.  
  445. After you change "nnrp.access" you don't have do "ctlinnd reload" since
  446. the file is read by each nnrpd as they start up.
  447.  
  448. Now "nntphost" should be letting "client" read.  Let's test this out:
  449.  
  450. Log into to the reader and "telnet nntphost 119".
  451.  
  452. To test a "reader":  Give the "mode reader" command and see how it
  453. likes it.  If it doesn't give an error, then nnrp.access is letting you
  454. through.  To read an article (or just get the header) type "head
  455. <2@test>" and press RETURN.  Again, "<2@test>" is a message-id that I
  456. know doesn't exist.  If you are allowed to read at all, it will tell
  457. you that it can't find that article.  You might try the command with an
  458. message-id that you know exists.
  459.  
  460. You are done with that phase.  Now you should test to see if posting is
  461. permitted.  Skip ahead to the next section.
  462.  
  463. If "mode reader" gives an error (and rudely disconnects you) then you
  464. have a typo in nnrp.access OR you didn't issue the "ctlinnd reload"
  465. command correctly (or at all) OR nntphost thinks that "client" is
  466. called yet something else OR innd can't exec nnrpd for one reason or
  467. another -- see the syslog output or the innd.err log file.  Go to the
  468. beginning of this section and start over.
  469.  
  470. Note: Some telnet implementations are Real Stupid and disconnect you
  471. before showing the error message.
  472.  
  473. You can also run nnrpd by hand if you have
  474.     stdin:Read Post:::*
  475. in your nnrp.access file.  Just run nnrpd and type interactively.  This
  476. is useful for making sure it's compiled right.
  477.  
  478.  
  479. ------------------------------
  480.  
  481. Subject: Make sure that clients can post.
  482.  
  483. The "inews" command (usually in /usr/local/bin) takes a post from a
  484. user, adds any missing headers, appends the first 4 lines of
  485. ~/.signature (if it exists), and possibly replaces any headers that are
  486. seriously forged.  "inews" will also reject a message if you really
  487. botch it.  "inews -h" expects a post on stdin beginning with headers,
  488. then a blank line, then the body.  "inews -h -D" doesn't post the
  489. message, but outputs what it would have posted.  The minimum headers
  490. one can feed is "Newsgroups:" (which is plural) and "Subject:" (which
  491. is singular).
  492.  
  493. By the way, after a header there is exactly one colon then exactly one
  494. space.  The space is a space, not a tab.  Also, the list of newsgroups
  495. on the "Newsgroups:" line is a comma separated list, with no spaces.
  496. There are no spaces before the colon.  If there is nothing after the
  497. colon or if there is only whitespace after the colon then that header
  498. will be removed by "inews".  Sites that don't remove such "empty"
  499. headers have broken software.  Get it?  Got it?  Good.
  500.  
  501. Here's the test message I constantly use:
  502. ------------------------ cut here 8<
  503. inews -h -D
  504. Newsgroups: foo.test
  505. Subject: test of inn posting
  506.  
  507. this is a test
  508. ------------------------ cut here 8<
  509.  
  510. Exciting huh?
  511.  
  512. You might also use the 'feedone' program in the frontends directory.
  513. Do "cd $inn/frontends ; make feedone" to get it built.  To run it, do
  514.  
  515.        feedone -t -r </tmp/inews.output
  516.  
  517. This will (-t) trace all I/O with the server and (-r) use a random
  518. message-id each time.  If you want to test posting from a newsreading
  519. host (i.e., one that connects to nnrpd and uses the POST command) use
  520. the -p flag.
  521.  
  522. If inews was able to get to the /usr/lib/news/inn.conf file (for
  523. defaults) you should get a nice post on your screen.  If you don't,
  524. here are my suggestions:
  525.  
  526. 1 -- You have an old inews from C news or B news laying around
  527. 2 -- inews will give you an error message saying what's wrong.
  528.  
  529. You might want to look around the usual places to make sure that there
  530. are no old versions of "relaynews" or "inews".  People trying to use
  531. the "inews" from C news will get a message about "can't open
  532. redirection" or similar.  Make sure they are running the programs
  533. included with INN.  There is something called "mini-inews" which should
  534. just take a post and send it to the nntp server.  Delete that and
  535. replace it with INN's inews.  INN's inews is mini-inews and regular
  536. inews, it is the ying and then yang of inewses.  It is the one inews to
  537. end all inewses and all others are false idols.
  538.  
  539. Note:  False idol worshipper and heathen David Myers <dem@meaddata.com>
  540. reports that mini-inews works fine.  He stays with mini-inews...
  541. "because INN inews needs to access not only inn.conf, but moderators,
  542. too.  Installing and maintaining these files in a ~1000 client,
  543. multiple administrative domain setup like ours is too much of a pain.
  544. Most (all?) of the work done by INN inews is done by in.nnrpd during
  545. posting, anyway."
  546.  
  547. INN's inews sometimes prints the error: "Can't get list of newsgroups,
  548. No such file or directory.".  inews called CAlistactive() to get a
  549. local copy of the active file.  If it can't reach the active file you
  550. get this error.  Look at your PATH_TEMPACTIVE and see if it makes
  551. sense; i.e., if it is a valid /tmp directory.
  552.  
  553. "inews -h" sometimes reports:
  554.     Can't send article to the server:
  555.     441 480 Transfer permission denied
  556. This means that you set HAVE_UNIX_DOMAIN to DONT and you don't have
  557. your news server in its own hosts.nntp file.  (nnrpd gets a POST,
  558. connects to innd over a TCP socket and sends an IHAVE.) (thanks to Chris
  559. Jackson <cjj@sun.com> for pointing this out).  Add your news server's
  560. name to hosts.nntp and do "ctlinnd reload hosts.nntp".
  561. (for the reason why, read "Warnings to people that must set
  562. HAVE_UNIX_DOMAIN to DONT")
  563.  
  564.    If it still doesn't work, look through your syslog to see the name
  565. of the host that innd got, and why it handed off to nnrpd.  Perhaps
  566. there is a DNS/NIS/hosts-file mismatch.  (suggested by Rich Salz)
  567.  
  568. Other problems are usually the result of not being able to find the
  569. "inn.conf" file (copy it to the client or make it available via NFS) or
  570. you are using Sun's brain-dead NIS/DNS stuff which doesn't do reverse
  571. name lookups well.  If inews tells you that it can't generate a
  572. Message-ID, this is because it can't figure out your domain.  Force it
  573. to know your domain by adding a "domain:" line in "inn.conf".
  574.  
  575. Once you get "inews -h -D" working, do the same test without the "-D" option
  576. and let it actually post the message.  If it can't post, it will tell
  577. you why.  If the answer isn't clear enough, "telnet nntphost 119", give
  578. the "mode reader" command, then the "post" command.  Enter lines of
  579. text like you would to "inews -h" and then type "." on a line by itself
  580. (and press RETURN).
  581.  
  582. If posting via "telnet nntphost 119" DOES work and posting via "inews -h"
  583. DOES NOT work, you know that (1) "inews" is compiled wrong, or more likely,
  584. (2) you aren't using INN's inews.  Either way, if this is happening
  585. you know you have narrowed your problems down to the inews program.
  586.  
  587. By the way, posting to misc.test is pretty useless considering that the
  588. entire world doesn't need to see your message.  Post to a local
  589. newsgroup or even a state-wide newsgroup like "nj.test" (assuming you
  590. are in New Jersey).  There are lots of people that reply to every test
  591. message they see, so expect to get tons of stupid email.  (though, if
  592. you don't get any email consider yourself lucky).  Also, there is no
  593. newsgroup called "news.test" so don't post there.  Many do, many fail.
  594. By the way, if you are one of those people that reply to every test
  595. message they see, get a real hobby.
  596.  
  597. Do *NOT* post your test message to a non-test newsgroup.  You will get
  598. many angry replies from all over the world.
  599.  
  600. Look at the posted message in the news spool (if you post a message to
  601. nj.test, "cd /var/spool/news/nj/test" and cat the highest numbered file
  602. you see).  If your site name is listed multiple times in the "Path:"
  603. header, put your server's name on the "pathhost:" line of
  604. "inn.conf" and recompile INN with "INEWS_PATH" set to
  605. "DONT".  (I don't know why Rich likes that as the default!)
  606.  
  607. REMEMBER:  inn.conf is read into innd only once.  After it is changed,
  608. the innd daemon must be shutdown and restarted.  (use "ctlinnd shutdown x"
  609. and then run rc.news as root).
  610.  
  611. If "inews -h" posts a message, smile because most of the battle is over.
  612.  
  613.  
  614. ------------------------------
  615.  
  616. Subject: "client" doesn't have the software needed to post.
  617.  
  618. If the client doesn't have "inews" at all, check the INN installation
  619. manual to find out how to compile it.  There is a special gimick
  620. included with INN to compile inews for the various other OS's and
  621. versions of Unix without having to compile the entire INN package.
  622.  
  623. Since nnpost, Pnews, postnews, and all other news posting software
  624. shouldn't do anything but ask for header information, let you add a
  625. body, and then pipe the whole thing to "inews -h", you can be pretty
  626. certain that if "inews -h" works, your news posting programs will
  627. work.  Think again!  Post from each of them and make sure they all get
  628. posted.  You might find that they access a copy of "inews" that was
  629. part of C news, mini-inews, or heavens knows what.
  630.  
  631. I highly recommend that people use "find" or "gnufind" to seek
  632. out and replace any old versions of "inews".
  633.  
  634. gnufind / /usr /usr/local /usr/lib -xdev -name inews\* -print
  635.  
  636. For every one that you find, do the following:
  637.  
  638. mv inews inews.cnews
  639. ln -s /usr/local/bin/inews inews
  640.  
  641. Now you only have to update /usr/local/bin/inews, rather than
  642. chasing may copies.
  643.  
  644. "nn" and "nnpost" create a file called "~/.nn/params" right before you
  645. post with tons of useful information.  While posting you can shell out
  646. of the editor and view the file.  The file is deleted after the message
  647. is posted.  I had to view this file while shelled out of my editor to
  648. find which "inews" was being used by "nnpost".
  649.  
  650. It's also a good idea to check your mail now and then while you are
  651. doing this.  Some newsreaders (like "nn" notify you of a posting
  652. problem via mail.
  653.  
  654. On non-INN systems, "inews" returns pretty quickly.  Actually they fork
  655. a process to do the actual posting in the background.  When those
  656. "inews" return, you don't know if the post was successful or not.
  657. These "inews"'s have a "-W" option which turns off this forking feature
  658. (i.e. Wait for the post to complete).
  659.  
  660. INN's "inews" never forks because the wait is never that long.  When
  661. "inews" returns you know if the post was successful or not.  INN's
  662. "inews" accepts the "-W" option for compatibility.
  663.  
  664. This may seem obvious, but when posting a test message, consider
  665. including the machine you are posting from and the program you are
  666. using.  Even though you may check to see if the message got posted
  667. after every test, this will help you later when you go back to see what
  668. you have done.
  669.  
  670.  
  671. ------------------------------
  672.  
  673. Subject: Debugging the "newsfeeds" file.
  674.  
  675. Outgoing news is controlled by the "newsfeeds" file.  The INN 1.2 man
  676. page for this file is a bit complex.  The man page in 1.3 (and beyond)
  677. gives better examples.  Here's a "cookbook" of examples that should
  678. cover most of your needs.  Debugging tips are also included.
  679.  
  680. Always remember that newsfeeds uses "wildmat" matches, not the
  681. semi-regular expressions that C news uses.  This means that if you want to get comp.foo and the subgroups under it (comp.foo.bar, comp.foo.baz, etc.) you
  682. have to use a statement like:
  683.  
  684. comp.foo,comp.foo.*
  685.  
  686. OR
  687.  
  688. comp.foo*
  689.  
  690. BUT NOT
  691.  
  692. comp.foo.*
  693.  
  694.  
  695. ------------------------------
  696.  
  697. Subject: The ME line in the newsfeeds file.
  698.  
  699. The "ME" entry is a bit confusing.  Be careful when you
  700. read the man page.
  701.  
  702. Here is the "ME" line that I use in my "newsfeeds" file.  I find
  703. it works quite well, but you might want to remove the distributions
  704. that you don't need (i.e. New Jersey).  Since my site has clients
  705. reading from all over the world I try to have every distribution I
  706. can find.  However, I hear of a new distribution almost daily so this
  707. list is always changing.
  708.  
  709. ME:!*/\
  710. news,gnu,comp,biz,alt,rec,misc,sci,soc,talk,inet,world,worldwide,all,\
  711. aus,su,uk,york,eunet,na,can,qc,tor,us,usa,mn,oh,chi,ca,ba,tx,pnw,il,ne,\
  712. ny,nyc,phl,bl,nj,warren::
  713.  
  714. If you want to blindly accept all distributions, try this:
  715.  
  716. ME:!*::
  717.  
  718.  
  719. ------------------------------
  720.  
  721. Subject: Cookbook example of an outgoing NNTP feed:
  722.  
  723. This example involves a machine named oddball.mentorg.com, that has an
  724. alias of oddball.sjc.mentorg.com, which should receive all posts (but
  725. control & junk should never be passed on) and not certain
  726. distributions.  Add the following line to newsfeeds:
  727.  
  728. oddball.mentorg.com/oddball.sjc.mentorg.com:*,!control*,!junk/!local,!warren:Tf,Wnm:
  729.  
  730. Have the user "news" run the following via cron:
  731.  
  732. 3,23,43 * * * *  /usr/lib/news/bin/nntpsend >/dev/null 2>&1
  733.  
  734. (this only needs to be added once.  nntpsend refers to a file
  735. called nntpsend.ctl to find out what to do).
  736.  
  737. Add the following to nntpsend.ctl:
  738.  
  739. oddball.mentorg.com:oddball.mentorg.com::
  740.  
  741. Done!
  742.  
  743.  
  744. ------------------------------
  745.  
  746. Subject: Cookbook example of an outgoing UUCP feed:
  747.  
  748. Example:  A site named "plts" that can not get the "clari" newsgroups
  749. or distribution "warren".
  750.  
  751. Add the following to the newsfeeds file:
  752.  
  753. plts:*,!clari.*,!junk*,!control*/!warren:Tf,Wnb:
  754.  
  755. Add the following to the cron tab (as user "news"):
  756.  
  757. 0 0-5,16-23 * * 1-5       /usr/lib/news/bin/sendbatch -c plts >/dev/null 2>&1
  758.  
  759.  
  760. ------------------------------
  761.  
  762. Subject: Testing an outgoing feed (your "newsfeeds" configuration).
  763.  
  764. Here is a decent game-plan for testing your newsfeeds configuration:
  765.  
  766. Suppose your site is in New Jersey and you have a distribution called
  767. "mentorg" which should be used by people that want to make sure that
  768. their post will not leave their company (Mentor Graphics).  You should
  769. do a test post to "nj.test" with no "Distribution:" header, and with
  770. "Distribution: nj" and "Distribution: mentorg".  After posting, do a
  771. "ctlinnd flush ''" and make sure that the /var/spool/news/out.going
  772. files for all your sites did/didn't queue up those three messages as
  773. appropriate.
  774.  
  775. IMPORTANT:  Remember to do a "ctlinnd reload newsfeeds x" command every
  776. time you update your "newsfeeds" file!
  777.  
  778. Finally, for checking out changes to newsfeeds, I've found "ctlinnd
  779. checkfile" handy.
  780.  
  781.  
  782. ------------------------------
  783.  
  784. Subject: Cookbook example setting up NOV ("overchan").
  785.  
  786. Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel) (with
  787. many modifications from Tom Limoncelli) writes:
  788.  
  789. Step 1:  Upgrade to INN 1.4 or higher:  Most of the bugs in 1.3 were
  790. related with overchan.  In fact, the reason why many people used 1.3
  791. without any problems was due to the fact that they were not using
  792. overchan (and didn't hit on some of the bugs that appeared for SVR4
  793. users, all of which were fixed in 1.4)
  794.  
  795. Step 2:  Make sure INN is working.  Get everything else working before
  796. you try to get overchan to work.  You'll only confuse yourself.
  797.  
  798. Step 3:  Ponder if you have enough disk space.  NOV uses up an
  799. additional 10%-20% of your news spool.  This is a good 100 Mb if you
  800. have a full feed.  The real space savings come when you delete your
  801. separate databases for trn, nn, and tin and use one unified database.
  802. All serious newsreaders will have NOV support soon.
  803.  
  804. Step 4:  Edit overview.fmt (it's in the $INN/site directory, or you can
  805. edit it where it was installed, in /usr/lib/news ) to include
  806. "Xref:full" as the last line.  (i.e. uncomment out the last line).
  807.  
  808. Step 5:  Add this entry to your "newsfeeds" file.  overchan gets it's data
  809. from a special feed.
  810.  
  811. # This feeds header data to NOV:
  812. OVERVIEW!:*:Tc,WO:/usr/local/news/bin/overchan
  813.  
  814. Read the "newsfeeds" man to make sure you understand what you've
  815. just done.
  816.  
  817. Step 6:  (optional) To create the original database:
  818.  
  819.     (run this as "news")
  820.     % /usr/local/news/bin/expireover -a -s
  821.  
  822. If you skip this step, access will be slow for articles that came
  823. in before you started "overchan".  This is not a problem.  You
  824. will get a lot of warnings in your "news.daily" output until
  825. you have received at least one new article in each newsgroup.
  826.  
  827. [ Note:  "a lot of warnings" means one for every newsgroup.  This can
  828. make your news.daily report >6000 lines.  The lines will all look
  829. like:
  830. overchan cant open clari/local/washington/.overview, No such file or directory
  831. overchan cant open clari/local/sfbay/.overview, No such file or directory
  832. overchan cant open uc/news/.overview, No such file or directory
  833. ]
  834.  
  835. Step 7:  Change the invocation of news.daily:
  836.  
  837. In the crontab file for "news", edit the "news.daily" line to be
  838. something like:
  839.  
  840.    news.daily delayrm expireover
  841.  
  842. (the expireover is required if you use overchan)
  843.  
  844. Step 8:  Inform your users that you now support "NOV, the News OverView
  845. database" and suggest that people switch to newsreaders that use
  846. newsreaders that are compliant with the Overview format.
  847.  
  848. Step 9:  You are done.
  849.  
  850. Step 10:  In a few weeks, drop support for mthreads, nnmaster, etc.
  851. (assuming you've upgraded to replacements that use Overview)
  852.  
  853.  
  854. ======================================================================
  855.  
  856.                  STARTUP PROBLEMS AND SYSLOG MESSAGES
  857.  
  858. ======================================================================
  859.  
  860.  
  861. ------------------------------
  862.  
  863. Subject: syslog message: ME internal no to group
  864.  
  865. Nelson Minar <nelson@reed.edu> discovered the hard way that:
  866.  
  867. If you set MERGE_TO_GROUPS to "DO",
  868.  
  869. You have to have a "to" group listed in your "active" file or you will
  870. get the above syslog message and innd will not start.
  871.  
  872.  
  873. ------------------------------
  874.  
  875. Subject: syslog message: ME cant sendto CCreader bytes 4 No such file or directory
  876.  
  877. (Rich Salz replies:) It usually means that some ctlinnd command timed
  878. out and gave up before innd could get around to replying.  Always a
  879. problem with datagrams.  :-)  Usually not a problem in real life
  880. however.  In INN1.3, the timeout stuff is handled better so most of
  881. these should go away.
  882.  
  883.  
  884. ------------------------------
  885.  
  886. Subject: syslog message: ME internal no control and/or junk group
  887.  
  888. You must have a newsgroup named "control" and a newsgroup named
  889. "junk" for innd to start.
  890.  
  891.  
  892. ------------------------------
  893.  
  894. Subject: syslog message: ME bad_newsfeeds no feeding sites
  895.  
  896. (Rich Salz replies:) The syslog message is telling you that you are not
  897. feeding news to any sites.  You have to have at least one feed.  (You
  898. may consider this to be a bug, it's just that I'm too lazy to make
  899. everything work right if you don't have any newsfeeds.)
  900.  
  901. Until you go into production and start feeding sites, add a line like this:
  902.         dummy-feed:!*::
  903.  
  904.  
  905. ------------------------------
  906.  
  907. Subject: Why do all these "readclose" messages show up in my syslog?
  908.  
  909. Chris Schmidt <cs@germany.eu.net> says:
  910.  
  911. The "readclose" message indicates that a remote connection to your
  912. server was not correctly terminated with the server-command "quit".
  913. This can have two reasons.  First the line your feed uses to connect to
  914. you might be instable so that the connection drops every now and then.
  915. Solution:  either ignore theses messages or find out why the line is
  916. unstable.  The second reason for these messages could be a
  917. missconfigured client-program at your feed.  This means the program
  918. (e.g nntplink) does close the connection without sending the "quit"
  919. first.  If you configure a lower number for the exit-timeout (-e) than
  920. the close-timeout (-C) in nntplink then exactly this will happen.
  921. Solution:  ask your feed to fix its nntplink-setup.  Let me repeat
  922. that:  If you are using "nntplink" your -e value must be higher than
  923. your -C value.
  924.  
  925.  
  926. ------------------------------
  927.  
  928. Subject:  "File exists writing symlinking article file -- throttling"
  929.  
  930. QUESTION: I'm running INN 1.4, and the server throttles itself, saying
  931. "File exists writing symlinking article file -- throttling".  Why?  I
  932. have no clue, other than to note that the message is being emitted
  933. while innd/art.c tries to link a crossposted group.
  934.  
  935. ANSWER:  Innd wrote the article to comp/foo/123 and then tried to
  936. symlink it to alt/bar/128 and found that the symlink failed with errno
  937. == EEXIST.  This generally only happens when your active file does not
  938. match your file/directory use.  The two most common cases of that are:
  939.  
  940.         Trying to use MMAP on Ultrix
  941.         Trying to use MMAP on Linux
  942.         Some strange interaction with tind.
  943.  
  944. If you are using Ultrix or Linux, turn off MMAP.  You don't have a choice in
  945. this.  The Ultrix mmap() function does something completely different
  946. than the Sun/BSD mmap() function.  The Linux function gives you some
  947. of the functionality that Sun/BSD mmap() function has, but not enough.
  948. (The Linux people expect to have it fully up to spec eventually.)
  949.  
  950. At least one person has reported problems with ICL DRS6000 SVR4 Unix
  951. when using MMAP.  Try turning off MMAP if you find problems.
  952.  
  953. It has been reported that tind writes to the active file and this
  954. confuses innd (innd assumes it is the only process writing to the
  955. active file).  If you are using tin, upgrade to the newest version of
  956. tin which can read the overview (NOV) database instead of the "tin"
  957. database.
  958.  
  959. To fix the active file (which may be corrupted), make sure nobody
  960. else is writing to the active file, then do
  961.         ctlinnd renumber ''
  962. to get things synchronized again.
  963.  
  964.  
  965. ------------------------------
  966.  
  967. Subject: "cant fopen <newsgroup>/.thread No such file or directory"
  968.  
  969. Q: nnrpd logs "cant fopen <newsgroup>/.thread No such file or
  970.    directory" hundreds of times a day although I installed trn-3 and
  971.    maintain an overview database.  Why doesn't trn use overview files
  972.    instead of mthreads data?
  973.  
  974. A: trn-3 tries to open .thread files (or use XTHREAD) first because
  975.    $spooldir/db.init still exists.  Delete it.
  976.  
  977.  
  978. ======================================================================
  979.  
  980.                              MISC QUESTIONS
  981.  
  982. ======================================================================
  983.  
  984.  
  985. ------------------------------
  986.  
  987. Subject: Can I edit my configuration files where they are, or do
  988. I have to edit them in $INN/site ?
  989.  
  990. Technically, you should edit those files in the $INN/site directory, but
  991. then typing "make" all the time becomes a grind.  I found that I was
  992. constantly forgetting to type "make" and then I couldn't figure out why
  993. my changes weren't doing anything.  The alternative is to edit things
  994. in place and let the install procedure complain.  It will error out on
  995. the file, and you can copy that file to $INN/site then "make" again.
  996.  
  997.  
  998. ------------------------------
  999.  
  1000. Subject: syslog: ME cant nonblock 15 Operation not supported.
  1001.  
  1002. I get the following "syslog" message in /var/adm/messages:
  1003.  
  1004. Dec  2 20:40:04 venus innd: ME cant nonblock 15 Operation not supported
  1005.  
  1006. Answer: (from paulr@umbc4.umbc.edu (Paul Riddle))
  1007.  
  1008. It turns out that this is happening because /usr/spool/news on the
  1009. machine running innd is an NFS-mounted filesystem, and innd is trying
  1010. to do an FIONBIO on my feed file, which is under /usr/spool/news/out.going.
  1011.  
  1012. (tal@warren.mentorg.com adds:)
  1013. All news transports (INN, C news, B news) want the spool partition to
  1014. be local.  Newsreader can read from an NFS mounted partition without
  1015. any problems but innd should only see local partitions.  NFS has a
  1016. blatant disregard for many of the file semantics that are needed for a
  1017. good news implementation.  If you don't agree, please feel free to
  1018. prove the authors of B news, C news, and INN wrong.  Include source
  1019. code. :-)
  1020.  
  1021. Systems without unix-domain sockets sometimes see this error.
  1022.  
  1023.  
  1024. ------------------------------
  1025.  
  1026. Subject: Suddenly my active and history files are owned by root!
  1027.  
  1028. rc.news runs from root.  After that, everything else should run as
  1029. news.  More specifically, it sounds like you've run news.daily as root
  1030. by mistake.  Make sure all your cron jobs run as news and you'll be
  1031. fine.
  1032.  
  1033. If you have an old "cron" system, you might consider replacing yours
  1034. with one of the many public domain replacements.  If you can't create
  1035. a different "crontab" for each user, the idiom is something like:
  1036.  
  1037. 0 * * * * * su news -c '/do/this/as/news'
  1038.  
  1039.  
  1040. ------------------------------
  1041.  
  1042. Subject: What can I do if I can't purchase the O'Reiley And Associates book
  1043. on Managing Usenet?
  1044.  
  1045. Hold a fundraiser?
  1046.  
  1047. Seriously, this document will help you some.  HOWEVER many people have
  1048. thought that the install.ms doc was incomplete but then re-read the
  1049. "First Time Installation" portion and were amazed how good it was.
  1050. Personally, I've been a newsadmin for too long to be able to know if it
  1051. would be good for beginners.
  1052.  
  1053.  
  1054. ------------------------------
  1055.  
  1056. Subject: Getting an active file.
  1057.  
  1058. >     In appendix IV, the reader is told that "the easiest way to
  1059. > [find out which groups to create] is usually to ask [your newsfeed
  1060. > site] for a copy of their active file, and for you to add the entries
  1061. > of the groups that you're interested in." It would have been nice to
  1062. > get instructions on where this active file lives, and how to create
  1063. > the new groups, without digging through manpages (I still haven't
  1064. > found out what the proper path and incantations are. How are these
  1065. > commands issued? As shell commands? As news articles?).
  1066.  
  1067. If your neighbor doesn't know where his/her active file is, you should
  1068. look for another neighbor.  "man active" will tell you on the first
  1069. line.  Different sites put it in different places.  The man page should
  1070. tell you where it is.
  1071.  
  1072. Here is how you zap someone else's active file to make it ready
  1073. for re-use:
  1074.  
  1075. sed <active.old >active.new \
  1076.        -e 's/^\([^ ]*\) [0-9]* [0-9]* \([^ ]*\)$/\1 0000000000 000000001 \2/'
  1077.  
  1078.  
  1079. ------------------------------
  1080.  
  1081. Subject: How do I use nntplink with INN?
  1082.  
  1083. First of all, I don't personally recommend using this program.  I feel
  1084. that it is a gimick.  However, if you decide to join the INN Instant
  1085. Propagation Party (INN-IPP), I suggest that you first run the feed using
  1086. traditional methods for a month so that you make sure you are used to
  1087. INN and make sure that the feed is properly functioning.  Once you're
  1088. ready, here's a cookbook example of an newsfeeds entry using nntplink.
  1089.  
  1090. netcomsv.netcom.com\
  1091.     :*,!junk/!ParcPlace\
  1092.     :Tc,Wmf,S1024:/usr/local/news/bin/nntplink -i stdin netcomsv.netcom.com
  1093.  
  1094. Others have reported that Tc,Wnm works.  Since I don't use this program
  1095. I can't validate which is correct.  INN 1.2 users should have an
  1096. explicit S value (i.e. S1024 or S16384).  Without it innd 1.2 can choke
  1097. and lose data if the receiver is jammed. (fixed in INN 1.3).
  1098.  
  1099. Ian Phillipps <ian@unipalm.co.uk> notes some criteria for using
  1100. nntplink rather than nnptsend:
  1101.  
  1102. > (1) If you have more than one backbone feed, you can save a lot of
  1103. > bandwidth, without risk, if you use nntplink (less duplication of
  1104. > articles over nearly-parallel paths).
  1105.  
  1106. > (2) More important, if you have a large number of feeds, nntplink
  1107. > permits them to be fed simultaneously with the same articles. No big
  1108. > deal, until you think of the what's going on in the pagedaemon and the
  1109. > disk cache.
  1110.  
  1111. > A "ps uaxr" rarely catches nntplink in the act ("D"), despite my having
  1112. > 17 of them last time I counted. Our biggest outgoing newsfeed delivered
  1113. > 16398 articles yesterday, using a total of 380 seconds CPU on a Sun
  1114. > IPC, and no disk time :-)
  1115.  
  1116.  
  1117. ------------------------------
  1118.  
  1119. Subject: How do I use newsgate with INN?
  1120.  
  1121. anselmo@nic.near.net (Ed Anselmo) reports:
  1122.  
  1123. > Can someone who's running INN and the news2mail program in the
  1124. > newsgate package send me a sample of the entry in the newsfeeds
  1125. > file for a typical bidirectional gateway? Thanks!
  1126.  
  1127. This assumes you configured "mail2news" to put a distinctive
  1128. host-gateway name, like "news-mail-gateway" in your Path: headers.
  1129.  
  1130. In /usr/lib/news/newsfeeds:
  1131. ====================================
  1132. ##
  1133. ##  NEWS/MAIL GATEWAY
  1134. ##
  1135.  
  1136. tech-gateway/news-mail-gateway\
  1137.         :ne.nearnet.tech\
  1138.         :Tp:/usr/lib/newsbin/news2mail \
  1139.         nearnet-tech nearnet-ops nearnet-tech-request nic.near.net %s
  1140. ====================================
  1141.  
  1142. On the mailing list side, one of the recipients is:
  1143.  
  1144. post-nearnet-tech: "|/usr/lib/newsbin/mail2news -n ne.nearnet.tech -o 'NEARnet News/Ma
  1145. il Gateway' -d ne"
  1146.  
  1147.  
  1148. ------------------------------
  1149.  
  1150. Subject: Other cron jobs.
  1151.  
  1152. Once a night you should run the "news.daily" script which will
  1153. expire old articles, run the daily reports, etc.  It should run
  1154. as "news" and look something like this:
  1155.  
  1156. 40 23 * * *               /usr/lib/news/bin/news.daily delayrm
  1157.  
  1158. If you get news feeds via UUCP, you might want to add this cron
  1159. job (also as "news") which checks to see if any batches arrived
  1160. while innd was down and processes them.
  1161.  
  1162. 20 * * * *                /bin/rnews -U
  1163.  
  1164.  
  1165. ------------------------------
  1166.  
  1167. Subject: After a crash.
  1168.  
  1169. "What do I do after a system crash?"
  1170.  
  1171. INN handles crashes pretty well.  If there are any problems they
  1172. get cleaned up by the nightly expire.  About once a month you
  1173. might want to run "makehistory -bu" to look for "lost" articles.
  1174. Check the man page for "makehistory" for more information.
  1175.  
  1176.  
  1177. ------------------------------
  1178.  
  1179. Subject: Debugging someone that is feeding you.
  1180.  
  1181. David Myers <dem@meaddata.com> suggests that if a neighbor complains
  1182. that their feed to you doesn't work: (1) make sure they've read the man
  1183. pages, and (2) have them send a copy of their newsfeeds file.
  1184.  
  1185.  
  1186. ------------------------------
  1187.  
  1188. Subject: Feeds suddenly can't connect anymore!
  1189.  
  1190. Q:  How come feeds tell me they can't connect to me any more?
  1191.  
  1192. A:  When innd starts up it reads the hosts.nntp file and looks up the
  1193. IP addresses for all the entries mentioned there.  The problem is that
  1194. this data is dynamic (sometimes people change IP addresses), and innd
  1195. never goes back to check.  If your system stays up for days and one of
  1196. your feeds changes their IP address, innd will reject them.  Rich plans
  1197. to handle this in INN1.5, but for now you might find it useful to do a
  1198. "ctlinnd reload hosts.nntp" out of cron every day or so or when you
  1199. notice there's a problem.
  1200.  
  1201.  
  1202. ------------------------------
  1203.  
  1204. Subject: How does the "ME" line interact with the other lines?
  1205.  
  1206. > I'm still a little confused about the ME line's second field.
  1207.  
  1208. The man page as of INN 1.3 is much more clear on this.  Basically, the
  1209. second field of the "ME" line specifies the default for the rest of the
  1210. feeds.  Otherwise, it isn't used.  The "active" file declares which
  1211. newsgroups you accept and don't accept.
  1212.  
  1213. Here are some examples:
  1214.  
  1215. ME:!*:::
  1216. foo:!junk:...        --send no newsgroups
  1217.  
  1218. ME:*:::
  1219. foo:!junk:...        --send all newsgroups except junk
  1220.  
  1221. ME:!*:::
  1222. foo:*,!junk:...      --send all newsgroups except junk
  1223.  
  1224. By the way, generally you do not want to send "junk" or "control" to
  1225. your neighbors.
  1226.  
  1227.  
  1228. ------------------------------
  1229.  
  1230. Subject: Why doesn't nntpget work?
  1231.  
  1232. The nntpget in INN 1.2 doesn't work.  Period.  Upgrade to the latest version
  1233. of INN.
  1234.  
  1235.  
  1236. ------------------------------
  1237.  
  1238. Subject: More about the "to.*" groups
  1239.  
  1240. (Thanks to jmalcolm@sura.net (Joseph Malcolm) for supplying
  1241. these answers.)
  1242.  
  1243. >1) Why did my local INN act on the sendsys posted to to.neighbor?
  1244.  
  1245. to.* groups aren't magic to INN. Your system received the message,
  1246. it acted on it.
  1247.  
  1248. >2) Why did my neighbor send the cmsg to all of his neighbors?
  1249.  
  1250. See 3.
  1251.  
  1252. >3) Is is related to having the "control" group in our newsgroups patterns?
  1253.  
  1254. Yes.
  1255.  
  1256. >   The INN docs say you probably don't want to do this, but they don't say
  1257. >   why.
  1258.  
  1259. Actually, they do. This is from innd(8):
  1260.  
  1261.      Sites may explicitly have the ``control'' newsgroup in their
  1262.      subscription  list,  although  it is usually best to exclude
  1263.      it.  If a control message is posted to a  group  whose  name
  1264.      ends  with  the  four characters ``.ctl'' then the suffix is
  1265.      stripped off and what is left is used  as  the  group  name.
  1266.      For  example,  a cancel message posted to ``news.admin.ctl''
  1267.      will be sent to all sites that subscribe to  ``control''  or
  1268.      ``news.admin.''
  1269.  
  1270. There is also a pointer to this in newsfeeds(5).
  1271.  
  1272. >   But I still need it in my active file, right?
  1273.  
  1274. Yes.
  1275.  
  1276.  
  1277. ------------------------------
  1278.  
  1279. Subject: I'm getting groups sent to me that I don't want.
  1280.  
  1281. Tell the system administrator(s) of the machine(s) that feed news to
  1282. you to stop sending those groups.  There is no other way to do it.  (In
  1283. B or C News, the groups would end up in junk; at least with INN they
  1284. are not taking up space.  You should compile with WANT_JUNK set to
  1285. DONT).
  1286.  
  1287. If the people that feed you use B news or C news, remember that they
  1288. don't use a "newsfeeds" file.  They use a file called "sys" which has a
  1289. completely different format method for listing newsgroups.
  1290.  
  1291.  
  1292. ------------------------------
  1293.  
  1294. Subject: When my feeder connects, I get articles but they don't take what's waiting for them.
  1295.  
  1296. I hate to say this, but this really shows that you haven't RTFMed very
  1297. much.
  1298.  
  1299. News is not bidirectional (it's like SMTP, not UUCP).  If you want to
  1300. send things out you will have to make sure that you run send-nntp or
  1301. nntpsend from cron.  nntpsend is easier and elsewhere in this document
  1302. there are cookbook examples of what to add every time you set up a new
  1303. feed.
  1304.  
  1305.  
  1306. ------------------------------
  1307.  
  1308. Subject: Directories are being created with wrong permissions.
  1309.  
  1310. > Question:
  1311. >When I received news for /var/spool/news/foo/bar for the first
  1312. >time, the directories got created:
  1313. >
  1314. ># ls -lgR foo
  1315. >total 1
  1316. >d-wx-w-rwx  2 news     news          512 Feb  9 00:03 bar/
  1317. >
  1318. >What did I do wrong?
  1319. >
  1320. >##  Mode that directories are created under.
  1321. >#### =()<GROUPDIR_MODE          @<GROUPDIR_MODE>@>()=
  1322. >GROUPDIR_MODE           2775
  1323.  
  1324.   Answer:
  1325. You forgot a zero in front of this number, for the C compiler to interpret it
  1326. as octal instead of decimal.
  1327.  
  1328.  
  1329. ------------------------------
  1330.  
  1331. Subject: Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  1332.  
  1333. Disclaimer:  First of all, if you have to set HAVE_UNIX_DOMAIN to DONT,
  1334. YOU HAVE TO SET IT to DONT.  It's not a choice you can make, it's a
  1335. description of the operating system that you purchased.  If you wrongly
  1336. set this variable to DO your system isn't going to work *at* *all*.
  1337.  
  1338. When you use the POST via NNTP, you are talking to nnrpd.  nnrpd cleans
  1339. up your headers, adds the missing headers that it is allowed to add,
  1340. checks whatever it checks, and then submits the finalized version to
  1341. innd.  How does it talk to innd?
  1342. If you have HAVE_UNIX_DOMAIN set to DO, nnrpd opens a Unix domain
  1343. socket and sends the text.  At this point it is talking to innd
  1344. somewhat like ctlinnd does.  innd can trust that the post isn't
  1345. forged since it is coming from a program trustworthy enough to
  1346. get to the socket (which isn't much).
  1347. If you have HAVE_UNIX_DOMAIN set to DONT, it has no choice but to open
  1348. a socket to port 119 and issue the "IHAVE" command, and send the text
  1349. that way (just like a remote newsreader).  This means that innd (not
  1350. another nnrpd) has to be at the other end of the pipe.  If it opens the
  1351. connection and sees a "nnrpd" you're hosed and you get "441 480
  1352. Transfer permission denied".  To get innd to not hand off the
  1353. connection to a nnrpd process, you must have the host's name in the
  1354. hosts.nntp file.  (don't forget to do "ctlinnd reload hosts.nntp")
  1355.  
  1356. If you have your host's name in the hosts.nntp file, then any
  1357. newsreader running on your nntphost must be "INN-aware" (i.e. that they
  1358. issue the "mode reader" command) or they must read news via the file
  1359. system instead of NNTP.
  1360.  
  1361. There is no way around this right now.
  1362.  
  1363.  
  1364. - * The End * -
  1365.